import { ElMessage } from 'element-plus'

// 成功消息
export const showSuccess = (message) => {
  ElMessage({
    message,
    type: 'success',
    duration: 2000
  })
}

// 警告消息
export const showWarning = (message) => {
  ElMessage({
    message,
    type: 'warning',
    duration: 3000
  })
}

// 错误消息
export const showError = (message) => {
  ElMessage({
    message,
    type: 'error',
    duration: 3000
  })
}

// 信息消息
export const showInfo = (message) => {
  ElMessage({
    message,
    type: 'info',
    duration: 2000
  })
}
